import request from '@/utils/request'
// 部门列表(全部，不分页)
export function getSectorListsAll(query) {
    return request({
        url: '/joining/busin.Position/getSectorListsAll',
        method: 'post',
        params: query
    })
}
// 岗位列表(全部，不分页)
export function getJobsListsAll(query) {
    return request({
        url: '/joining/busin.Position/getJobsListsAll',
        method: 'post',
        params: query
    })
}
// 菜单列表
export function getMenus(query) {
    return request({
        url: '/agency/api.Login/getMenus',
        method: 'post',
        params: query
    })
}
// 权限_设置指定岗位的权限
export function setAuth(query) {
    return request({
        url: '/agency/api.Auth/setAuth',
        method: 'post',
        params: query
    })
}
// 权限_指定岗位的权限详情
export function getAuth(query) {
    return request({
        url: '/agency/api.Auth/getAuth',
        method: 'post',
        params: query
    })
}
// 权限_获取当前用户拥有权限的菜单列表
export function getAuthMenusLists(query) {
    return request({
        url: '/agency/api.Auth/getAuthMenusLists',
        method: 'post',
        params: query
    })
}
// 单图上传
export const uploadImg = (file) => {
    // var dataForm = new FormData();
    // dataForm.append('file', file);
    return request({
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        url: '/api/common/fileUpload',
        method: 'post',
        data: file
    })
}